/**
 * 获取课程分类列表信息-栏目过滤
 * @param {*} body 
 * @returns 
 */
export const useLoadNoteCategoriesApi = (channelId) => {
    return useHttpPost(`/cnote/category/list/${channelId}`)
}

/**
 * 获取课程分类列表信息
 * @param {*} body
 * @returns
 */
export const useLoadNoteCategoriesAllApi = () => {
    return useHttpPost(`/cnote/category/listall`)
}

/**
 * 保存更新课程
 */
export const useNoteSaveUpdateVideoApi = (body) => {
    return useHttpPost("/v1/cnote/saveupdate",{body})
}

/**
 * 复制课程
 */
export const useCopyNoteApi = (id) => {
    return useHttpPost("/v1/cnote/saveCopy/"+id,{})
}

/**
 * 更新课程
 */
export const useLoadNoteUpdateVideoApi = (body) => {
    return useHttpPost("/v1/cnote/update/video",{body})
}

/**
 * 更新课程视频
 */
export const useLoadNoteUpdateVideoIdApi = (body) => {
    return useHttpPost("/v1/cnote/update/videoid",{body})
}


/**
 * 查询课程信息
 */
export const useLoadNoteApi = (body) => {
    return useHttpPost("/cnote/list",{body})
}


/**
 * 查询推荐的课程信息
 */
export const useLoadPushNoteApi = (body) => {
    return useHttpPost("/cnote/push/list",{body})
}


/**
 * 根据课程id查询明细信息
 */
export const useLoadNoteDetail = (id) => {
    return useHttpPost(`/cnote/detail/${id}`,{})
}


/**
 * 根据课程id查询明细信息
 */
export const useLoadNoteDetailAll = (id) => {
    return useHttpPost(`/cnote/detailall/${id}`,{})
}

/**
 * 刷新缓存
 */
export const useRefreshCache = (id) => {
    return useHttpPost(`/v1/cnote/deletecache/${id}`,{})
}

/**
 * 上一页下一页
 */
export const useLoadPrevNext = (id) => {
    return useHttpPost(`/cnote/prevnext/${id}`,{})
}


/**
 * 统计栏目课程相关信息
 */
export const useLoadStateChannel = (channelId) => {
    return useHttpPost(`/cnote/count/all/${channelId}`,{})
}


